<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>
    <title>Title</title>
    <meta charset="UTF-8">
    <link href="media/kindeditor-4.1.10/themes/default/default.css" type="text/css" rel="stylesheet">
    <script src="media/js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="media/kindeditor-4.1.10/kindeditor-all-min.js"></script>
    <script type="text/javascript" charset="utf-8" src="media/kindeditor-4.1.10/lang/zh_CN.js"></script>

</head>
<body>

<form>

<textarea id="editor"></textarea>
    <input type="button" onclick="xxxx()">
</form>

<script type="text/javascript" >
    var kingEditorParams ={
        filePostName  : "file",//指定上传文件参数名称
        uploadJson:'hotel/upload.html',//指定上传文件请求的url。
        dir:"image"//上传类型，分别为image、flash、media、file
    }
    var editor;
    $(function () {
        editor=KindEditor.create($("#editor"),kingEditorParams);
    })
    function xxxx() {
        editor.sync()
        //提交表单
    }
</script>

</body>
</html>
